#pragma once

#include <memory>
#include <easy2d/easy2d.h>
using namespace easy2d;

#include "PokerCard.h"

class Poker : public Scene
{
private:
	std::vector<PokerCard *> cards_;
	Button * question_, * answer_;
	Text * qt_, *at_;
	Text * solution_;

	int pos_[4];

	Music *click_, *point_;

public:
	Poker();
	virtual ~Poker();

	void onUpdate() override;
	void onEnter() override;
	void onExit() override;

public:
	void showQuestion();
	void showAnswer();

private:
	void init();
	void release();
	void hideCards();
	bool genCards(int *const pos);
};

